package com.wenjh.jdmzt.service;

import android.database.sqlite.SQLiteDatabase;

import com.wenjh.jdmzt.util.Log4Android;

public abstract class BaseService {
	protected SQLiteDatabase db = null;
	protected Log4Android log = new Log4Android(getClass().getSimpleName());
	
	public BaseService() {
	}
	
	public void close() {
		if(db != null) {
			db.close();
			db = null;
		}
	}
	
	public SQLiteDatabase getDb() {
		return db;
	}
}
